import template from './sw-extension-domains-modal.html.twig';
import './sw-extension-domains-modal.scss';

/**
 * @sw-package checkout
 * @private
 */
export default {
    template,

    emits: ['modal-close'],

    props: {
        extensionLabel: {
            type: String,
            required: true,
        },

        domains: {
            type: Array,
            required: true,
        },
    },

    computed: {
        modalTitle() {
            return this.$t('sw-extension-store.component.sw-extension-domains-modal.modalTitle', {
                extensionLabel: this.extensionLabel,
            });
        },
    },

    methods: {
        close() {
            this.$emit('modal-close');
        },
    },
};
